<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Games extends CI_Model {
	
	function __construct() 
	{
		parent::__construct();
    	
	}
	
	
	
	//MÉTODOS PRIVADOS DA ADMIN//	
	public function get_games()
	{
		$query = $this->db->get('games');		

			foreach ($query->result() as $row)
			{
			    echo $row->id;
				echo $row->name;
			}
		
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */


